package exception;

public class RandomGenerateException extends Exception {
    private String message = "";

    public RandomGenerateException(int left, int right) {
        this.message = "No such integer is more than " + (left - 1) + " less than " + right;
    }

    public RandomGenerateException(int n) {
        this.message = "Length of Array should be more than 0";
    }

    public RandomGenerateException(int left, int right, int n) {
        this.message = "Length of Array should be less than " + (right - left + 1);
    }


    public String getMessage() {
        return message;
    }
}
